﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcApplication2.Models;

namespace MvcApplication2.Controllers
{
    public class SearchExercisesViewModel
    {
        public SearchExercisesViewModel()
        {
            Exercises = new List<ExerciseFindTesterViewModel>();
        }
        public List<ExerciseFindTesterViewModel> Exercises { get; set; }

        public string LanguagesFiltered { get; set; }
        public string TargetDevice { get; set; }
        public bool CanScreenCapture { get; set; }
        public bool CanWebcamRecording { get; set; }
    }
}

public class ExerciseFindTesterViewModel : Exercise
{
    public string ProposalSendedMessage { get; set; }

    public string OwnerName
    {
        get { return base.Owner.DisplayName; }
    }

    public string DeviceName
    {
        get { return base.Device.Description; }
    }
}